package com.moliku.insurance.model.dto.pingan.token;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.moliku.insurance.model.dto.InsuranceBaseParam;
import com.moliku.insurance.model.vo.pingan.token.PingAnTokenVo;
import lombok.Data;

@Data
public class PingAnTokenParam implements InsuranceBaseParam<PingAnTokenVo> {

    @Override
    public Class<PingAnTokenVo> responseType() {
        return PingAnTokenVo.class;
    }

    @Override
    public String url() {
        return "/oauth/oauth2/access_token";
    }

    @Override
    public METHOD methodType() {
        return METHOD.GET;
    }

    @Override
    public FORMAT formatType() {
        return FORMAT.JSON;
    }

    /**
     *client_id
     */
    @JsonProperty("client_id")
    private String clientId="P_BYWTEST001";

    /**
     * 授权类型
     */
    @JsonProperty("grant_type")
    private String grantType="client_credentials";

    /**
     * 秘钥
     */
    @JsonProperty("client_secret")
    private String clientSecret="97d5NdRq";

}
